#!/usr/bin/env python

"""
功能：手动生成所有SKU的静态detail html文件
使用方法:
    ./regenerate_detail_html.py
"""
import os
if not os.getenv('DJANGO_SETTINGS_MODULE'):
    os.environ['DJANGO_SETTINGS_MODULE'] = 'mall.settings'

import django
django.setup()

# from django.template import loader
# from django.conf import settings
#
# from utils.goods import get_categories
# from goods.models import SKU
from celery_tasks.html.tasks import *


if __name__ == '__main__':
    generate_list_categroy_html()
    # skus = SKU.objects.all()
    # for sku in skus:
    #     print(sku.id)
    #     generate_static_sku_detail_html(sku.id)